package com.emergency.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.emergency.data.entity.ExpertGroup;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExpertGroupMapper extends BaseMapper<ExpertGroup> {

    List<ExpertGroup> selectAll(@Param("dutiesId") Long dutiesId,
                                @Param("industryId") Long industryId,
                                @Param("name") String name);

    IPage<ExpertGroup> selectAllByPage(Page<ExpertGroup> page,
                                       @Param("dutiesId") Long dutiesId,
                                       @Param("industryId") Long industryId,
                                       @Param("name") String name);
}
